function createDialog(dialogId, dialogTitle, dialogUrl)
{
    var url = dialogUrl;

    $("<div>").attr("id",dialogId).dialog(
        {
            iconCls:'icon-save2',
            title : dialogTitle,
            width : '70%',
            height : '100%',
            closed : false,
            cache : false,
            draggable : false,
            href : url,
            modal : true,
            shadow:true,
            onClose : function()
            {
                $(this).dialog('destroy');
            }
        });
    $("#" + dialogId).dialog("open");
}
